<include file="public:top"/>
<div class="container">
    <div class="maincontent">
        <h3 class="pull-left">
            <i class="glyphicon glyphicon-book"></i>
            用户信息<small>User information</small>
        </h3>
        <if condition="session(SESSION_ISLOGIN) and empty($_GET['userId'])">
            <div class="pull-right addButton">
                <a href="__URL__/update">修改信息</a>
            </div>
        </if>
        <div class="clear"></div>
        <div class="hr"></div>
        <div class="row-space">
            <table class="table table-striped table-bordered table-hover">
                <tr>
                    <td style="width:10%;"><strong>用户名：</strong></td>
                    <td>{{$user.u_name}}</td>
                </tr>
                <tr>
                    <td><strong>头像：</strong></td>
                    <td>
                        <if condition="$user.u_image neq ''">
                            <img class='img-rounded img-size' src="__PUBLIC__/photos/s_{{$user.u_image}}" width="80px;">
                        <else />
                            您还没有上传头像呢。
                        </if>
                    </td>
                </tr>
                <tr>
                    <td><strong>性别：</strong></td> 
                    <td>
                        <if condition = "$user.u_sex neq 0">
                            {{$user.u_sex|getSex}}
                        <else />
                            选一下性别吧。
                        </if>
                    </td>
                </tr>
                <tr>
                    <td><strong>出生日期：</strong></td>
                    <td>
                        <if condition = "$user.u_birthday neq 0">
                            {{$user.u_birthday|date="Y-m-d",###}}
                        <else />
                            去填写出生日期吧。
                        </if>
                    </td>
                </tr>
                <tr>
                    <td><strong>手机号码：</strong></td>
                    <td>
                        <if condition = "$user.u_telphone neq ''">
                            {{$user.u_telphone}}
                        <else />
                            去填写手机号码吧。
                        </if>
                    </td>
                </tr>
                <tr>
                    <td><strong>QQ：</strong></td>
                    <td>
                        <if condition = "$user.u_qq neq 0">
                            {{$user.u_qq}}
                        <else />
                            去填写QQ号码，方便联系。
                        </if>
                    </td>
                </tr>
                <tr>
                    <td><strong>邮箱：</strong></td>
                    <td>
                        <if condition = "$user.u_email neq ''">
                            {{$user.u_email}}
                        <else />
                            去填写Email号码，方便联系。
                        </if>
                    </td>
                </tr>
                <tr>
                    <td><strong>格言：</strong></td>
                    <td>
                        <if condition = "$user.u_mingyan neq ''">
                            {{$user.u_mingyan}}
                        <else />
                            有啥格言没有。
                        </if>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</div>
<script type="text/javascript">
    $("#u_birthday").datetimepicker({format: 'yyyy-mm-dd'});
</script> 
<include file="public:footer"/>

